{% extends "base.html" %}

{% block stylesheets %}
{% endblock %}

{% block content %}
<div class="section section-standard" id="notifications">
    <div class="section-inner">
        <div class="section-header" data-100p-top="transform[swing]:translateY(-25px);opacity[swing]:0" data-75p-top="transform[swing]:translateY(0);opacity[swing]:1">
            <h3>确认</h3>
            <div class="divider">//</div>
        </div>
		<div class="container">
			<div class="row">
				<div class="col-md-6 offset-md-3">
					{% for info in infos %}
						<div class="alert alert-info alert-dismissable" role="alert">
							<span class="sr-only"></span>
							{{ info }}
							<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span
									aria-hidden="true">×</span></button>
						</div>
					{% endfor %}
					{% for error in errors %}
						<div class="alert alert-danger alert-dismissable" role="alert">
							<span class="sr-only">错误:</span>
							{{ error }}
							<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span
									aria-hidden="true">×</span></button>
						</div>
					{% endfor %}
					{% if user %}
					<h3 class="text-center">
						我们已经发送了确认邮件到 {{ user.email }}
					</h3>

					<br>

					<h4 class="text-center">
						请点击邮件中的链接以确认你的账户注册。
					</h4>
					{% endif %}

					<hr>

					{% if name %}
					<form method="POST" action="{{ url_for('auth.confirm') }}">
						<h4 class="text-center">
							没有收到？需要重新发送确认邮件？
						</h4>
						<div class="col-md-12 text-center">
							<button type="submit" id="submit" tabindex="5" class="btn btn-md btn-primary btn-outlined">重发</button>
						</div>
						<input type="hidden" name="nonce" value="{{ nonce }}">
					</form>
					{% endif %}
				</div>
			</div>
		</div>
	</div>
</div>
{% endblock %}

{% block scripts %}
	<script src="{{ url_for('views.themes', path='js/style.js') }}"></script>
{% endblock %}

